<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <ul>
        <li v-for="item of arr" :key="item.id">
          <input type="checkbox" v-model="sel" :value="item.id" />
          <b>{{item.title}}</b>
        </li>
      </ul>
      <h2>{{sel}}</h2>
    </div>
  </body>
</html>
<script src="./vue.js"></script>
<script>
  const vm = new Vue({
    el: "#app",
    data: {
      sel: [],
      arr: [
        {
          id: 1,
          title: "🥒",
        },
        {
          id: 2,
          title: "🍌",
        },
        {
          id: 3,
          title: "🥕",
        },
      ],
    },
  });
</script>
